package com.cdck.safe.dete.model.vo;

import com.cdck.safe.dete.model.entity.SysUser;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.ArrayList;
import java.util.List;

/**
 * @author : Sakura
 * @Date : 2024/3/10 10:55
 * @Description : TODO
 */
@ApiModel(value = "科室排队视图对象")
@Data
public class QueueDeptVO {
    @ApiModelProperty(value = "部门ID")
    private Long id;

    @ApiModelProperty(value = "父部门ID")
    private Long parentId;

    @ApiModelProperty(value = "部门名称")
    private String name;

    @ApiModelProperty(value = "排序")
    private Integer sort;

    @ApiModelProperty(value = "状态(1:启用；0:禁用)")
    private Integer status;

    @ApiModelProperty(value = "子部门")
    private List<DeptVO> children;

    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm")
    private LocalDateTime createTime;
    @ApiModelProperty(value = "修改时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm")
    private LocalDateTime updateTime;

    @ApiModelProperty(value = "排队用户信息")
    List<SysUser> users = new ArrayList<>();
}
